/*
 * ExceptionMessage.h
 *
 *  Created on: 2013. 12. 12.
 *      Author: jjaehuny
 */

#ifndef PROJECTZ_NRESOURCE_EXCEPTIONMESSAGE_H_
#define PROJECTZ_NRESOURCE_EXCEPTIONMESSAGE_H_

#include <Toolkit/Str.h>
#include <map>

namespace ProjectZ { namespace NResource {

class ExceptionMessage
{
public:
	struct Flyweight
	{
		int 					_KEY;
		int 					_ISFORCEKILL;
		Toolkit::Str<1024> 	_MESSAGE;
	};

public:
	ExceptionMessage();
	virtual ~ExceptionMessage();

public:
	bool 			LoadResource();
	Flyweight * 	GetFly(int key);

private:
	void	Clear();

private:
	typedef std::map<int, Flyweight *>	TREE;
	TREE	clsFlyTree;
};

} /* NResource */ } /* ProjectZ */

#endif /* PROJECTZ_NRESOURCE_EXCEPTIONMESSAGE_H_ */
